Php implements the conversion of the Gregorian calendar, and php implements the Gregorian calendar. Php implements the interactive method of the Gregorian calendar. php is more interested in the algorithm of the conversion from the Gregorian calendar to the lunar calendar recently, so it searches the Internet. Good way
PHP implementation of the Gregorian lunar calendar, the method of the implementation of the Gregorian lunar calendar
Recently to the Gregorian calendar to get the corresponding holiday algorithm this is more interested in this aspect, so on the internet searched a circle. Good, but also to find a better PHP class, to achieve the conversion of the
The constellation is transmitted from abroad to China, in fact, in ancient China also has a constellation said 12 stars times, it is used to measure the position and operation of stars, months, and days, dividing the zodiac into 12 parts, so it is called "12 Stars", and 12 constellations are used for divination, and each symbol on the constellation represents a certain direction of the universe. Later, people used to put 12 constellation, representing the 12 kinds of personality. So is the const
Calendars play a very important role in our lives, and work, school and date are all inseparable from calendars. Every year the new year begins, people have to change the calendar, you want to know how many days in the next year is how to be determined? Why last year's National Day is Friday and this year's National day is Wednesday? Let's look at the calendar algorithm. This article describes the scheduling rules for calendars, determines how a day is calculated for the days of the week, and ho
This article mainly introduces the method of implementing the Gregorian lunar calendar in PHP, and also can obtain the Ganzhi, Zodiac, and the corresponding lunar calendar Chinese names, etc., interested in small partners can refer to. We hope to help you.
Recently to the Gregorian calendar to get the corresponding holiday algorithm this is more interested in this aspect, so on the internet searched a circ
Python: an example of how to convert a Gregorian calendar to a lunar calendar.
This article describes how to convert a calendar from a Gregorian calendar to a lunar calendar in Python. We will share this with you for your reference. The details are as follows:
Two key points:
1. the query table (126th rows) is used for the conversion from the Gregorian calendar t
This is a practical php date-time operation class, which includes the Gregorian-lunar conversion, converted to Chinese date format, the calculation of the lunar calendar days apart, the lunar calendar year to obtain the lunar calendar days, the number of days to obtain the lunar calendar year, get a leap month, calculate the lunar date and the first day of the first month, calculate 2 Gregorian calendar ( S
Using the Gregorian class GregorianCalendar, the Gregorian class GregorianCalendar has a method Settimeinmillis (long), which can be used to set a specific time from January 1, 1970. Please enter a long integer value from the keyboard and then output the corresponding year, month, and day. For exampleInput: 1234567898765Output: 2009-02-14Reference Code
Method One:
Import Java.text.SimpleDateFormat;
Import j
This article mainly introduces how php achieves the conversion of the Gregorian calendar and the Chinese name of the calendar.
This article mainly introduces how php achieves the conversion of the Gregorian calendar and the Chinese name of the calendar.
Recently, I was interested in the algorithm used to convert the Gregorian calendar to the lunar calendar
Many people want to find their own calendars. For this very simple problem, Perpetual calendar is also very difficult for friends who do not frequently access the internet. I am determined to solve this problem.
Now I have written a Java applet that uses some existing resources on the Internet. You can directly enter your own calendar or calendar birthday, click "Submit" to see the date after the transformation. I hope it will be useful to you.
Http://three.freejsp.net/yuanqingfei/
Thanks http
PHP achieves mutual conversion between the Gregorian calendar date and the lunar calendar date.
PHP achieves mutual conversion between Gregorian and lunar dates
Preface:
Today, according to the customer's needs, the time was converted, that is, the customer requested to increase the display of the lunar date, copied a section on the Internet, and slightly modified it to run successfully, it is not difficult
Given the Gregorian date, the 12 constellations that are returned for that date are calculated.public static String getxingzuoname (int month, Int. day);Note: The parameter month and day are both Gregorian and Japanese.The name of the returned Chinese constellation: Virgo.Import Java.util.map;import java.util.hashmap;import Java.util.arraylist;import java.util.list;// Importandroid.util.log;public class Xin
Weekly computing availableZeller Formula(Applicable only after October 15, 1582 ):
W = Y + [Y/4] + [C/4]-2C + [26 (m + 1)/10] + D-1
The meanings of the symbols in the formula are as follows:C: Century (double digits of the year );Y: year (two digits below the year level );M: Month (M is greater than or equal to 3, less than or equal to 14, that is, in the caile formula, the 1 and February of a year are regarded as the 13 and 14 months of the previous year.For example, January 1, 2005 is regarded
PHP implementation of the Gregorian to lunar conversion class instance, solar instance
In this paper, we describe the class of PHP conversion from Gregorian to lunar. Share to everyone for your reference. Specific as follows:
Copy CodeThe code is as follows: A class for converting PHP solar to lunar calendarClass Calendar{Days of the lunar monthvar $everyCMonth =array (0=>array (8,0,0,0,0,0,0,0,0,0,0,0,29,
This article mainly introduces sample code for js output of the lunar calendar, Gregorian calendar, year, month, and week. For more information, see.
The Code is as follows:
In. system. globalization. chineseLunisolarCalendar is a calendar class for China. It is used to calculate information about the calendar, such as the calendar and calendar year of the traditional Chinese calendar.
Use
static ChineseLunisolarCalendar cCalendar = new ChineseLunisolarCalendar();
CCalendar. MaxSupportedDateTime returns the supported maximum date, that is, 2101-1-28
CCalendar. MinSupportedDateTime returns the supported minimum date, that is
Next we will convert the
Incorrect number year for Gregorian calendar
In the following code$lunarCalendar = Getlunarcalendar (2015,1,12);echo $lunarCalendar [' Year '];//here the lunar years should be 2014, but when the output shows it is indeed 2015How do I get the correct lunar year in the code below?
function Getlunarcalendar ($year, $month, $day)
{
Days of the lunar month
$everymonth = Array (0 = = Array (8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 29, 30, 7, 1),
1 = Array (0,
Excel is a table Office software in office, using Excel to make a report is more convenient than making a form in Word, not to draw a grid of the table, the following small series to teach you in Excel in the function of the Gregorian calendar date to the lunar calendar method, this step is very simple, it is not difficult to learn.
① start Excel2010, enter the following function in any cell: "=text (Now ()," [$-130000]yyyy-m-d ")".
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.